x86: move PV privileged instruction emulation code
authorWei Liu <wei.liu2@citrix.com>
Mon, 5 Jun 2017 11:44:51 +0000 (12:44 +0100)
committerWei Liu <wei.liu2@citrix.com>
Wed, 21 Jun 2017 13:23:23 +0000 (14:23 +0100)
commitecaba067e1e433c7b2d7e309f8eee6f2fdb5c8a0
treeb352ecae36625f4a885167570774e0abd80d4446
parent46b488cb661bca81559b24883ffd22602d71a65a
x86: move PV privileged instruction emulation code

Move the code to pv/emul-priv-op.c. Prefix emulate_privileged_op with
pv_ and export it via pv/traps.h.

Also move gpr_switch.S since it is used by the privileged instruction
emulation code only.

Code motion only except for the rename. Cleanup etc will come later.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/pv/Makefile
xen/arch/x86/pv/emul-priv-op.c [new file with mode: 0644]
xen/arch/x86/pv/gpr_switch.S [new file with mode: 0644]
xen/arch/x86/traps.c
xen/arch/x86/x86_64/Makefile
xen/arch/x86/x86_64/gpr_switch.S [deleted file]
xen/include/asm-x86/pv/traps.h [new file with mode: 0644]